package com.qf.controller;

import com.qf.entity.StudentVO;
import com.qf.service.StudentService;
import com.qf.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FindStudentWithSubjectsById {
    @Autowired
    private StudentService studentService;
    @GetMapping("/subjects")
    public R findStudentWithSubjectsById(Integer id){
        StudentVO studentVO = studentService.findStudentWithSubjectsById(id);
        return R.ok(studentVO);

    }
}
